package online.longzipeng.cinemasys.vo.sysuser;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @author lzp
 * @since 2021/3/15 16:14
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "密码修改对象",description = "请求参数类")
public class SysUserChangePasswordVo {

    @ApiModelProperty(value = "用户id",example = "1",required = true)
    @NotNull(message = "用户id不能为空！！")
    @Min(value = 0,message = "用户id为大于0的数字！！")
    private Long id;

    @ApiModelProperty(value = "旧密码",example = "lzp666",required = true)
    @NotBlank(message = "旧密码不能为空！！")
    private String oldPassword;

    @ApiModelProperty(value = "新密码",example = "lzp666",required = true)
    @NotBlank(message = "新密码不能为空！！")
    private String newPassword;
}
